package org.jeecg.modules.workvehicleborrow.mapper;

import java.util.List;



import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.workvehicleborrow.entity.WorkVehicleBorrow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.workvehicleborrow.vo.workvehicleborrowVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @Description: work_vehicle_borrow
 * @Author: jeecg-boot
 * @Date:   2021-08-25
 * @Version: V1.0
 */
public interface WorkVehicleBorrowMapper extends BaseMapper<WorkVehicleBorrow> {


    /**
     * 查询车俩借用记录
     * @param page
     * @param borrowStartTime
     * @param vehicleNumber
     * @return
     */
    List<workvehicleborrowVo>  findworkvehicleborrow(Page<workvehicleborrowVo> page, @Param("borrowStartTime") String borrowStartTime, @Param("vehicleNumber") String vehicleNumber);


    /**
     * 删除id
     * @param id
     * @return
     */
    int del(String id);

    /**
     * 根据id查询还车时间
     * @param id
     * @return
     */
    String findendTime(String id);

    /**
     * 分配车俩
     * @param workvehicleborrowVo
     * @return
     */
    int  insert(@Param("workVehicleBorrow") workvehicleborrowVo workvehicleborrowVo);

    /**
     * 查询借车时间
     * @param id
     * @return
     */
    String findstartTime(String id);


    /**
     * 查询车俩但前状态
     * @param id
     * @return
     */
    int findvehicleState(String id);
}
